<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="es" lang="es"  id="home">
   <head>
      <title>{$title}</title>
      <link rel="stylesheet" type="text/css" href="/wp-content/themes/default/css/main.css" />
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
      {if $controller eq event and ($action eq create or $action eq show or $action eq commentedit)}
      {literal}
      <script type="text/javascript" src="z-content/js/tiny_mce/tiny_mce.js"></script>
      <script language="javascript" type="text/javascript">
         tinyMCE.init({
            mode : "textareas",
            theme : "advanced",
            theme_advanced_disable : "styleselect",
            theme_advanced_buttons2 : "bullist,numlist,link,unlink,anchor,image,code ",
            theme_advanced_buttons3 : ""
         });
      </script>
      {/literal}
      {/if}
   </head>
   <body>
      {if $user->getId()}
      <a href="/index.php?c=user&amp;a=show&amp;id={$user->getId()}">{$user->getLogin()}</a>
      <a href="/index.php?c=user&amp;a=logout">{$lang.logout}</a>
      {else}
      <a href="/index.php?c=user&amp;a=register">{$lang.register}</a>
      <a href="/index.php?c=user&amp;a=login">{$lang.login}</a>
      {/if}
      <h1><a href="/index.php">{$lang.notebook}</a></h1>
      {include file="$controller.tpl"}
   </body>
</html>